<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<html>
<head>
    <link href="<s:url value="/css/main.css"/>" rel="stylesheet" type="text/css"/>
	<title><s:text name="application.title"/></title>
</head>

<body>
	<s:actionerror/>
	<div class="titleDiv"><s:text name="application.title"/></div>
	<h1><s:text name="label.marksubject.title"/> <s:property value="student.Nombre"/>(<s:property value="subject.Nombre"/>)</h1>
	
	<table class="borderAll">
		    <tr>
		        <th><s:text name="label.student.dni"/></th>
		        <th><s:text name="label.student.name"/></th>
		        <th><s:text name="label.student.phone"/></th>
		        <th>&nbsp;&nbsp;</th>
		    </tr>
		        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
		            <td class="nowrap"><s:property value="student.Dni"/></td>
		            <td class="nowrap"><s:property value="student.Nombre"/></td>
		            <td class="nowrap"><s:property value="student.Telefono"/></td>
		        </tr>				
	</table>
	
	<BR><BR>

	<table class="borderAll">
		    <tr>
		        <th><s:text name="label.lecturerSubject.code"/></th>
		        <th><s:text name="label.lecturerSubject.namesub"/></th>
		        <th><s:text name="label.lecturerSubject.credits"/></th>
		        <th><s:text name="label.lecturerSubject.teacher"/></th>
		        <th><s:text name="label.lecturerSubject.noStudents"/></th>
		        <th>&nbsp;&nbsp;</th>
		    </tr>
		        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
		            <td class="nowrap"><s:property value="subject.Codigo"/></td>
		            <td class="nowrap"><s:property value="subject.Nombre"/></td>
		            <td class="nowrap"><s:property value="subject.Creditos"/></td>
		            <td class="nowrap"><s:property value="subject.Profesor.Nombre"/></td>
		            <td class="nowrap"><s:property value="subject.Matriculacion.size"/></td>
		        </tr>				
	</table>
	
	<s:form action="subjectMarkingAction!doMarking">
			<tr>
				<td colspan="2">
					<s:actionerror />				
			<s:hidden name="subjectID" value="%{subjectID}"/>
			<s:hidden name="studentID" value="%{studentID}"/>
			<s:textfield name="concept" label="%{getText('label.evaluacion.Concept')}"/>
			<s:textfield name="mark" label="%{getText('label.evaluacion.Mark')}"/>
			<s:submit value="%{getText('label.button.submit')}"/>
			<s:submit value="%{getText('label.button.cancel')}" name="redirect-action:lecturerAction"/>
				</td>
			</tr>

	</s:form>
</html>